package com.zzyl.nursing.task;

import com.zzyl.nursing.service.impl.AlertDataServiceImpl;
import com.zzyl.nursing.service.impl.AlertRuleServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class AlertTask {

    @Autowired
    private AlertRuleServiceImpl alertRuleService;

    public void deviceDataAlertFilter() {
        log.info("开始执行设备数据报警过滤任务");
        alertRuleService.alertFilter();
    }
}
